package com.hooper.iot.util;

import com.alibaba.fastjson.JSONObject;
import com.alibaba.fastjson.serializer.SerializerFeature;
import com.hooper.iot.entity.MediaInformationDto;

/**
 * @ Copyright
 * @ Author     ：wangcheng.
 * @ Date       ：Created in 15:49 2022/4/24
 * @ Description：
 * @ Modified By：
 * @Version: $
 */
public class IdUntil {
    public static String getMessgeId() {
        Long l = System.currentTimeMillis();
        return l.toString().substring(3);
    }

    public static void main(String[] args) {
        MediaInformationDto dto = new MediaInformationDto();
        MediaInformationDto.Body body = dto.new Body();
//        dto.setBody(Arrays.asList(body));
        SerializerFeature[] arg = new SerializerFeature[]{SerializerFeature.WriteMapNullValue, SerializerFeature.QuoteFieldNames};
        System.out.println(JSONObject.toJSONString(dto, arg));
    }
}
